import React from 'react';
import './App.css';
import { useDispatch, useSelector } from 'react-redux';
import { RootState } from './store';
import Counter from './components/Counter';
import RandomNumberList from './components/RandomNumberList';

function App() {
  const dispatch = useDispatch();
  const count = useSelector<RootState, number>(state => state.counter.count);

  
  return (
    <div className="App">
      <Counter></Counter>
      <RandomNumberList></RandomNumberList>
    </div>
  );
}

export default App;
